<?php


namespace App\HttpController;


use App\Common\lib\Code;
use App\Logic\ToolsLogic;
use EasySwoole\Http\AbstractInterface\Controller;

class ToolsCommon extends Controller
{
    /**
     * 工具列表
     * @return bool
     */
    public function lists(){
        return $this->writeJson(Code::$success,(new ToolsLogic())->lists(),'ok');
    }

    /**
     * 工具详情
     * @return bool
     */
    public function detail(){
        return $this->writeJson(Code::$success,(new ToolsLogic())->detail($this->request()->getRequestParam('tools_id')),'ok');
    }
}